<div class="container" style="width:100%;">
        <!--切换条件-->
        <!--商户选择-->
    <div class="form-group speak" >
        <label class="control-label col-xs-12 col-sm-2">{:__('讲解员')}:</label>
        <div class="col-xs-12 col-sm-3">
            <select class="form-control tiaojie" name="row[admin_id]" >
                {foreach $speak as $k=>$val}
                <option value="{$k}" selected>{$val}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <input type="hidden" value="{$id}" class="id" >
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <div  class="btn btn-success submit">{:__('OK')}</div>
        </div>
    </div>
</div>
<script src="/lib/jquery/1.9.1/jquery.min.js"></script>
<script src="/lib/layer/2.4/layer.js"></script>
<script>
    $(".submit").on('click',function () {
        //prompt层
         var id =  $(".id").val();
         var  tiaojie =$(".tiaojie").val();
         var url = "visit/people?tiaojie="+tiaojie+"&id="+id;
        // alert(url);
            $.ajax({
                type: "GET",
                dataType: "json",
                url: url,
                success: function (data) {

                    layer.msg('调解员排版成功', function(){
                        parent.location.reload(true);
                        parent.layer.close(index);
                    });
                }
            })
    });
</script>


